
package com.hc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.ICompanyPartnerDao;
import com.hc.domain.CompanyPartner;
import com.hc.service.ICompanyPartnerService;
@Service("companyPartnerService")
public class CompanyPartnerServiceImpl implements ICompanyPartnerService {
	@Resource
	private ICompanyPartnerDao companyPartnerDao;

	@Override
	public List<CompanyPartner> findCompanys() {
		return companyPartnerDao.findCompanys();
		
	}

	@Override
	public void save(CompanyPartner cp) {
		companyPartnerDao.saveCompany(cp);
	}

	@Override
	public CompanyPartner getById(int id) {
		return companyPartnerDao.getById(id);
	}

	@Override
	public void update(CompanyPartner cp) {
		companyPartnerDao.updateCompany(cp);
	}

	@Override
	public void delete(CompanyPartner cp) {
		companyPartnerDao.deleteCompany(cp);
	}
}

